package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

/**
 * Created by wuwc on 2017/7/13.
 */
@Component
//@ConfigurationProperties(prefix = "guozhengtong")
//@PropertySource("classpath:properties/guozhengtong.properties")
@DisconfFile(targetDirPath = "disconf", filename = "guozhengtong.properties")
public class GuozhengtongProperties {

    private String url;
    private String username;
    private String userpwd;
    private String type;
    private String intfname;
    private String key;

    @DisconfFileItem(name = "guozhengtong.url", associateField = "url")
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @DisconfFileItem(name = "guozhengtong.username", associateField = "username")
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @DisconfFileItem(name = "guozhengtong.userpwd", associateField = "userpwd")
    public String getUserpwd() {
        return userpwd;
    }

    public void setUserpwd(String userpwd) {
        this.userpwd = userpwd;
    }

    @DisconfFileItem(name = "guozhengtong.type", associateField = "type")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @DisconfFileItem(name = "guozhengtong.intfname", associateField = "intfname")
    public String getIntfname() {
        return intfname;
    }

    public void setIntfname(String intfname) {
        this.intfname = intfname;
    }

    @DisconfFileItem(name = "guozhengtong.key", associateField = "key")
    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
}
